package com.ruoyi.an.mapper;

import com.ruoyi.an.domain.AnWechatUserMechanism;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 机构推广用户列Mapper接口
 * 
 * @author ruoyi
 * @date 2022-11-05
 */
public interface AnWechatUserMechanismMapper 
{
    /**
     * 查询机构推广用户列
     * 
     * @param mechanismMemberUserId 机构推广用户列主键
     * @return 机构推广用户列
     */
    public AnWechatUserMechanism selectAnWechatUserMechanismByMechanismMemberUserId(Long mechanismMemberUserId);

    /**
     * 查询机构推广用户列列表
     * 
     * @param anWechatUserMechanism 机构推广用户列
     * @return 机构推广用户列集合
     */
    public List<AnWechatUserMechanism> selectAnWechatUserMechanismList(AnWechatUserMechanism anWechatUserMechanism);

    /**
     * 新增机构推广用户列
     * 
     * @param anWechatUserMechanism 机构推广用户列
     * @return 结果
     */
    public int insertAnWechatUserMechanism(AnWechatUserMechanism anWechatUserMechanism);

    /**
     * 修改机构推广用户列
     * 
     * @param anWechatUserMechanism 机构推广用户列
     * @return 结果
     */
    public int updateAnWechatUserMechanism(AnWechatUserMechanism anWechatUserMechanism);

    /**
     * 删除机构推广用户列
     * 
     * @param mechanismMemberUserId 机构推广用户列主键
     * @return 结果
     */
    public int deleteAnWechatUserMechanismByMechanismMemberUserId(Long mechanismMemberUserId);

    /**
     * 批量删除机构推广用户列
     * 
     * @param mechanismMemberUserIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAnWechatUserMechanismByMechanismMemberUserIds(Long[] mechanismMemberUserIds);

    public List<AnWechatUserMechanism> selectWechatUserMechanismByWechatUserIds(@Param("wechatUserIds") List<Long> wechatUserIds);
}
